package com.nand.module.function.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.nand.module.function.R;
/**
 * @author wangjt
 * @date 2018/12/11
 */
public class GlideUtil {


    public static void loadImg(Context context, String url, ImageView iv) {
        RequestOptions error = new RequestOptions().placeholder(R.mipmap.item_bg).error(R.mipmap.item_bg);
        Glide.with(context).load(url).apply(error).into(iv);
    }
}
